//
//  SSCarouselFigure.h
//  Travel_World
//
//  Created by dlios on 15/10/12.
//  Copyright © 2015年 TLS. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SSCarouselFigureDelegate <NSObject>

- (void)clickCarouselFigureItem:(NSInteger)item;

@end


@interface SSCarouselFigure : UIView<UICollectionViewDataSource, UICollectionViewDelegate>

@property (nonatomic, assign) id<SSCarouselFigureDelegate>delegate;
@property (nonatomic, strong) UICollectionView *collectionView;
@property (nonatomic, strong) UIImageView *imageView;
@property (nonatomic, strong) NSMutableArray *arr;
@property (nonatomic, strong) UIPageControl *page;
@property (nonatomic, strong) NSTimer *timer;

- (instancetype)initWithFrame:(CGRect)frame;
- (void)createColletionViewByArr:(NSMutableArray *)arr;

@end
